#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 50
#include <math.h>

int main()
{
	int i, j,m;
	int a[N] = { 0 };
	int k = 0;

	for (i = 2; i < 100; i++)
	{
		for (j = 2; j <= sqrt(i); j++)
		{
			m = i % j;
			if (m == 0) break;
		}
		if (m != 0)
		{
			a[k] = i;
			k++;
		}
	}
	for (k = 0; k < N; k++)
		printf("%d ", a[k]);


	return 0;
}